{extend name="index:base" /}
{block name="main"}
<hr>

<div class="container">
    <h3>创建任务</h3>
    <form action="{:url('Employee/createTask')}" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <label>任务名</label>
            <input type="text" name="tn" class="form-control">
        </div>
        <div class="form-group">
            <label>任务文件</label>
            <input type="file" name="file" class="form-control">
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-default">创建任务</button>
        </div>
    </form>
</div>
<hr>
<div class="container">
    <h3>不通过的任务</h3>
    {volist name="tasks" id="task"}
        <span>任务名：{$task.name}</span><a href="{:url('Employee/commit',['id'=>$task['id']])}">提交任务</a>
        {:widget('widgets/upload', ['Employee/alterTask', $task])}
    {/volist}
</div>

{/block}